* lisp/emacs-lisp/vtable.el (vtable-update-object): Fix.
authorAdam Porter <adam@alphapapa.net>
Sat, 9 Mar 2024 04:28:52 +0000 (22:28 -0600)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Mar 2024 08:48:29 +0000 (10:48 +0200)
The order of the arguments to 'seq-position' was wrong, and it did not
compare the correct values.  (Bug#69664)

lisp/emacs-lisp/vtable.el

index 02020552e7f47816b031278a71d0965cb8831961..5cf8d8854bbb53e2ab49ff63738ce68ac446508d 100644 (file)
@@ -300,7 +300,9 @@ If it can't be found, return nil and don't move point."
         (error "Can't find the old object"))
       (setcar (cdr objects) object))
     ;; Then update the cache...
-    (let* ((line-number (seq-position old-object (car (vtable--cache table))))
+    (let* ((line-number (seq-position (car (vtable--cache table)) old-object
+                                      (lambda (a b)
+                                        (equal (car a) b))))
            (line (elt (car (vtable--cache table)) line-number)))
       (unless line
         (error "Can't find cached object"))